(function() { var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {};templates['base-details'] = template(function (Handlebars,depth0,helpers,partials,data) {
  this.compilerInfo = [4,'>= 1.0.0'];
helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
  


  return "<div id=\"header\" class=\"container\"></div>\n<div class=\"clearfix\"></div>\n<div id=\"body\" class=\"container rounded\">\n<div class=\"marco\">\n    <div class=\"detalle\">        \n    </div>\n</div>\n</div>\n<div id=\"footer\" class=\"container\"></div>";
  } ); })();(function() { var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {};templates['base-layout'] = template(function (Handlebars,depth0,helpers,partials,data) {
  this.compilerInfo = [4,'>= 1.0.0'];
helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
  


  return "<div id=\"header\" class=\"container\"></div>\n<div class=\"clearfix\"></div>\n<div id=\"body\" class=\"container rounded\">\n    <div class=\"marco\">        \n        <div class=\"cuerpo\">\n            <div id=\"columna\" class=\"columna_izquierda\">\n                <div id=\"sidebar\"></div>\n            </div>\n            <div id=\"central\" class=\"columna_central\"></div>\n        </div>\n        <div id=\"central_a\" class=\"columna_central_a\"></div>   \n        <div id=\"central_b\" class=\"columna_central_b\"></div>  \n    </div>\n</div>\n<div id=\"footer\" class=\"container\"></div>";
  } ); })();(function() { var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {};templates['crear-premio'] = template(function (Handlebars,depth0,helpers,partials,data) {
  this.compilerInfo = [4,'>= 1.0.0'];
helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
  


  return "<div class=\"row\">\n<form id=\"form1\" action=\"#\" class=\"contact_form\">\n<div id=\"frame1\">\n    <ul>  \n          <li>  \n              <h1>Crear Premio</h1>\n              <br />Cada Proyecto necesita grandes recompensas.  \n          </li> \n          <li>  \n              <label for=\"name\">Monto $:</label>  \n              <input type=\"text\" placeholder=\"$0 USD\" required />\n          </li> \n          <li>  \n              <label for=\"name\">Descripcion:</label>  \n              <input type=\"text\" placeholder=\"Descripcion\" required />\n          </li> \n          <li>                     \n              <a id=\"link_premio\" class=\"boton-form\" title=\"\" href=\"#agregarpremio\">Agregar</a>  \n          </li>  \n          <li>\n              <div class=\"CSSTableGenerator\">\n                <table>\n                    <tr>\n                        <td>\n                            Codigo \n                        </td>\n                        <td>\n                            Descripcion\n                        </td>\n                        <td>\n                            Monto\n                        </td>\n                        <td></td>\n                    </tr>\n                    <tr>\n                        <td>\n                            Row 1\n                        </td>\n                        <td>\n                            Row 1\n                        </td>\n                        <td>\n                            Row 1\n                        </td>\n                        <td>\n                            <img src=\"images/editar.png\"   alt=\"\"/><a href=\"#\">Editar</a>&nbsp;&nbsp;&nbsp; \n                            <img src=\"images/eliminar.png\" alt=\"\"/><a href=\"#\">Eliminar</a>\n                        </td>\n                    </tr>                   \n                </table>\n              </div>\n          </li>\n      </ul>        \n</div>\n</form>\n</div>";
  } ); })();(function() { var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {};templates['crear-proyecto'] = template(function (Handlebars,depth0,helpers,partials,data) {
  this.compilerInfo = [4,'>= 1.0.0'];
helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
  


  return "<div class=\"row\">\n<form id=\"form1\" action=\"#\" class=\"contact_form\">\n<div id=\"frame1\">\n    <ul>  \n        <li>  \n            <h1>Nuevo Proyecto</h1> \n            <br />Comience por darle un nombre, una imagen y otros detalles importantes. \n        </li>  \n        <li>  \n            <label for=\"name\">Titulo del Proyecto:</label>  \n            <input type=\"text\" placeholder=\"Titulo del Proyecto\" required />  \n        </li> \n        <li>\n            <label for=\"name\">Categoria:</label>  \n                <select id=\"cmbCategory\">\n                    <option value=\"1\" selected>Todos</option>\n                    <option value=\"2\">Destacados</option>\n                    <option value=\"3\">Arte</option>\n                    <option value=\"4\">Historietas</option>\n                    <option value=\"5\">Danza</option>\n                    <option value=\"6\">Dise�o</option>\n                    <option value=\"7\">Moda</option>\n                    <option value=\"8\">Cine y Video</option>\n                    <option value=\"9\">Comida</option>\n                    <option value=\"10\">Juegos</option>\n                    <option value=\"11\">M�sica</option>\n                    <option value=\"12\">Fotografia</option>\n                    <option value=\"13\">Publicacion</option>\n                    <option value=\"14\">Tecnologia</option>\n                    <option value=\"15\">Teatro</option>\n                </select>\n        </li>\n        <li>  \n            <label for=\"name\">Descripcion:</label>  \n            <textarea name=\"message\" cols=\"60\" rows=\"4\" required></textarea>\n        </li> \n        <li>  \n            <label for=\"name\">URL del Video:</label>  \n            <input type=\"text\" placeholder=\"URL del Video\" required />  \n        </li> \n        <li>  \n            <label for=\"name\">Financiacion ($):</label>  \n            <input type=\"text\" placeholder=\"$0 USD\" required />\n        </li>\n        <li>\n            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n            <a id=\"link_premio\" class=\"boton-form\" title=\"\" href=\"#crearpremio\">Guardar</a>\n        </li>\n    </ul> \n</div>\n</form>\n</div>";
  } ); })();(function() { var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {};templates['detalle-proyecto'] = template(function (Handlebars,depth0,helpers,partials,data) {
  this.compilerInfo = [4,'>= 1.0.0'];
helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
  


  return "<div id=\"header\" class=\"container\"></div>\n<div class=\"clearfix\"></div>\n<div id=\"body\" class=\"container rounded\">\n<div class=\"marco\">\n    <div class=\"detalle\"> \n        <div id=\"frame1\">\n          <div class=\"infoproyecto\"></div> \n        </div> \n        <div id=\"frame2\">\n          <div class=\"infocreador\"></div>  \n          <br/>\n        <div class=\"infopremio\"></div> \n        </div>   \n    </div>\n</div>\n</div>\n<div id=\"footer\" class=\"container\"></div>";
  } ); })();(function() { var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {};templates['financiar-proyecto'] = template(function (Handlebars,depth0,helpers,partials,data) {
  this.compilerInfo = [4,'>= 1.0.0'];
helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
  var buffer = "", stack1, functionType="function", escapeExpression=this.escapeExpression, self=this;

function program1(depth0,data) {
  
  var buffer = "", stack1;
  buffer += "\n              <li>\n                 <input type=\"radio\" id=\"";
  if (stack1 = helpers.id) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
  else { stack1 = depth0.id; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
  buffer += escapeExpression(stack1)
    + "\" /> $";
  if (stack1 = helpers.monto) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
  else { stack1 = depth0.monto; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
  buffer += escapeExpression(stack1)
    + " CAD+  ";
  if (stack1 = helpers.descripcion) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
  else { stack1 = depth0.descripcion; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
  buffer += escapeExpression(stack1)
    + "<br/>\n              </li>\n            ";
  return buffer;
  }

  buffer += "<div class=\"row\">\n<form id=\"form1\" action=\"#\" class=\"contact_form\">\n    <div id=\"frame1\">\n        <ul>\n            <li>\n                <h1>Recompensa!</h1>\n                <br />Ingrese el  monto \n            </li>\n            <li>\n                <input type=\"text\" placeholder=\"$\" required />&nbsp;&nbsp;Debe ingresar cualquier monto desde $1 a mas.\n            </li>\n            <li>\n                Selecciona tu recompensa\n            </li>\n            ";
  stack1 = helpers.each.call(depth0, depth0.premio, {hash:{},inverse:self.noop,fn:self.program(1, program1, data),data:data});
  if(stack1 || stack1 === 0) { buffer += stack1; }
  buffer += " \n            <li>\n                <a id=\"link_recompensa\" class=\"boton-form\" title=\"\" href=\"#\">Continuar</a>\n            </li>\n        </ul>\n    </div>\n</form>\n</div>";
  return buffer;
  } ); })();(function() { var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {};templates['footer'] = template(function (Handlebars,depth0,helpers,partials,data) {
  this.compilerInfo = [4,'>= 1.0.0'];
helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
  


  return "<div style=\"background-color: #84b600;\">\n<b>\n<div style=\"text-align:center;\">\n<br/>\n<br/>\n<p style=\"color:#FFFFFF;\">Desarrollo de Entorno Web - Trabajo Grupal</p>\n<br/>\n<br/>\n<br/>\n<br/>\n<a href=\"index.html\">Ir a Inicio</a> | <a href=\"#\">Quienes Somos</a> | <a href=\"#\">Nuestra Mision</a> | <a href=\"#\">Nuestra Vision</a> \n<br/>\n<br/>\n<br/>\n<br/>\n<p style=\"color:#FFFFFF;\">Proyecto KickStarter - All right reserved, Copyright (c) 2014</p>\n<br/>\n<br/>\n<br/>\n<br/>\n</div>\n</div>";
  } ); })();(function() { var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {};templates['header'] = template(function (Handlebars,depth0,helpers,partials,data) {
  this.compilerInfo = [4,'>= 1.0.0'];
helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
  var buffer = "", stack1, functionType="function", escapeExpression=this.escapeExpression;


  buffer += "<div class=\"alert alert-danger errorMessage\" style=\"display:none\">Complete todos los campos para poder continuar</div>\n<div class=\"header\">\n<img src=\""
    + escapeExpression(((stack1 = ((stack1 = depth0.logo),stack1 == null || stack1 === false ? stack1 : stack1.src)),typeof stack1 === functionType ? stack1.apply(depth0) : stack1))
    + "\" class=\"pull-left\" alt=\""
    + escapeExpression(((stack1 = ((stack1 = depth0.logo),stack1 == null || stack1 === false ? stack1 : stack1.alt)),typeof stack1 === functionType ? stack1.apply(depth0) : stack1))
    + "\"/>\n<div class=\"pull-right\">\n<table cellpadding=\"0\">\n    <tr>\n        <td rowspan=\"2\" style=\"width:100px;\">\n            <a id=\"link_proyectos\" class=\"boton\" title=\"\" href=\"#crearproyecto\">Proyectos</a>\n        </td>\n        <td rowspan=\"2\" style=\"width:230px;\">\n            <a id=\"link_acceder\" class=\"boton\" title=\"\" href=\"#iniciarproyecto\">Iniciar Proyectos</a>\n        </td>\n        <td style=\"width:120px;\">\n            <div class=\"text\"><label for=\"name\">Correo electronico</label></div>\n        </td>\n        <td style=\"width:120px;\">\n            <div class=\"text\"><label for=\"name\">Contrasena</label></div>\n        </td>\n        <td></td>\n        <td></td>\n    </tr>\n    <tr>\n        <td>\n            <div class=\"text\"><input id=\"email\" type=\"text\" class=\"form-control\" placeholder=\"Correo Electrónico\" required=\"\" autofocus=\"\"></div>\n        </td>\n        <td>\n            <div class=\"text\"><input id=\"password\" type=\"password\" class=\"form-control\" placeholder=\"Contraseña\" required=\"\"></div>\n        </td>\n        <td>&nbsp;<button id=\"btnAcceder\" class=\"submit\" type=\"submit\">Iniciar Sesion</button></td>\n        <td>&nbsp;<a id=\"link_registrarme\" class=\"boton-form\" title=\"\" href=\"#registrarusuario\">Registrarme</a></td>\n    </tr>\n</table>\n</div>";
  return buffer;
  } ); })();(function() { var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {};templates['info-creador'] = template(function (Handlebars,depth0,helpers,partials,data) {
  this.compilerInfo = [4,'>= 1.0.0'];
helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
  var buffer = "", stack1, functionType="function", escapeExpression=this.escapeExpression, self=this;

function program1(depth0,data) {
  
  var buffer = "", stack1;
  buffer += "\n    <br/>\n    <br/>\n    <table>\n        <tr>\n           <td>\n                <fieldset>\n                <legend>&nbsp;&nbsp;<b>Informacion del Creador</b></legend>            \n                    Nombres: ";
  if (stack1 = helpers.nombres) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
  else { stack1 = depth0.nombres; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
  buffer += escapeExpression(stack1)
    + "<br/>\n                    Correo electronico: ";
  if (stack1 = helpers.correo) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
  else { stack1 = depth0.correo; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
  buffer += escapeExpression(stack1)
    + "<br/>  \n                    Celular: ";
  if (stack1 = helpers.celular) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
  else { stack1 = depth0.celular; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
  buffer += escapeExpression(stack1)
    + "<br/>\n                    Direccion: ";
  if (stack1 = helpers.direccion) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
  else { stack1 = depth0.direccion; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
  buffer += escapeExpression(stack1)
    + "<br/>\n                    Tarjeta de Credito: ";
  if (stack1 = helpers.tarjetaCredito) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
  else { stack1 = depth0.tarjetaCredito; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
  buffer += escapeExpression(stack1)
    + "    \n                <br/>    \n                </fieldset>\n           </td>\n        </tr>\n    </table>\n    <br/>\n    <br/>\n    ";
  return buffer;
  }

  buffer += "<div class=\"infocreador\">\n    ";
  stack1 = helpers.each.call(depth0, depth0.usuario, {hash:{},inverse:self.noop,fn:self.program(1, program1, data),data:data});
  if(stack1 || stack1 === 0) { buffer += stack1; }
  buffer += "\n\n</div>";
  return buffer;
  } ); })();(function() { var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {};templates['info-premio'] = template(function (Handlebars,depth0,helpers,partials,data) {
  this.compilerInfo = [4,'>= 1.0.0'];
helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
  var buffer = "", stack1, functionType="function", escapeExpression=this.escapeExpression, self=this;

function program1(depth0,data) {
  
  var buffer = "", stack1;
  buffer += "\n        <br/>    \n        <font style=\"font-size:30px;\">Plegde $";
  if (stack1 = helpers.monto) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
  else { stack1 = depth0.monto; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
  buffer += escapeExpression(stack1)
    + "</font><br/></br/>\n        <font style=\"font-size:20px;\">";
  if (stack1 = helpers.backers) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
  else { stack1 = depth0.backers; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
  buffer += escapeExpression(stack1)
    + " Backers</font><br/></br/>    \n        Descripcion ";
  if (stack1 = helpers.descripcion) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
  else { stack1 = depth0.descripcion; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
  buffer += escapeExpression(stack1)
    + "<br/>          \n        <br/>\n        <br/> \n ";
  return buffer;
  }

  buffer += "<div class=\"infopremio\">\n ";
  stack1 = helpers.each.call(depth0, depth0.premio, {hash:{},inverse:self.noop,fn:self.program(1, program1, data),data:data});
  if(stack1 || stack1 === 0) { buffer += stack1; }
  buffer += "    \n</div>";
  return buffer;
  } ); })();(function() { var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {};templates['info-proyecto'] = template(function (Handlebars,depth0,helpers,partials,data) {
  this.compilerInfo = [4,'>= 1.0.0'];
helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
  var buffer = "", stack1, functionType="function", escapeExpression=this.escapeExpression, self=this;

function program1(depth0,data) {
  
  var buffer = "", stack1;
  buffer += "\n    <table style=\"width:100%\">\n    <tr>\n       <td style=\"width:70%;\" valign=\"top\">\n            <div style=\"text-align:center;\"><iframe width=\"500\" height=\"400\" src=\"";
  if (stack1 = helpers.video) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
  else { stack1 = depth0.video; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
  buffer += escapeExpression(stack1)
    + "\" frameborder=\"0\" allowfullscreen></iframe><div>           \n       </td>\n       <td valign=\"top\">\n            <font style=\"font-size:50px;\">";
  if (stack1 = helpers.backers) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
  else { stack1 = depth0.backers; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
  buffer += escapeExpression(stack1)
    + "</font><br/>\n            backers\n            <br/>\n            <br/>\n            <font style=\"font-size:50px;\">$";
  if (stack1 = helpers.pledged) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
  else { stack1 = depth0.pledged; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
  buffer += escapeExpression(stack1)
    + "</font><br/>\n                pledged of $";
  if (stack1 = helpers.monto) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
  else { stack1 = depth0.monto; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
  buffer += escapeExpression(stack1)
    + " goal <br/><br/><br/>\n            <a href=\"#financiarproyecto\" class=\"boton-form\">Back This Proyect</a>\n            <!--<a href=\"#\" class=\"link_premio\" data-id=\"";
  if (stack1 = helpers.idProyecto) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
  else { stack1 = depth0.idProyecto; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
  buffer += escapeExpression(stack1)
    + "\">Back This Proyect</a>-->\n            <br/>\n            <br/>\n            <br/>\n            <button class=\"submit\" type=\"button\" onclick=\"location.reload();\">Ir a Inicio</button>  \n            <br/>\n            <br/>\n       </td>   \n    </tr>\n    <tr>\n        <td colspan=\"2\">\n            <br/>\n            <br/>\n            <p style=\"text-align: justify;\">\n                ";
  if (stack1 = helpers.informacionBasica) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
  else { stack1 = depth0.informacionBasica; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
  buffer += escapeExpression(stack1)
    + " \n            </p>\n        </td>\n    </tr>\n    </table> \n";
  return buffer;
  }

  buffer += "<div class=\"infoproyecto\">\n";
  stack1 = helpers.each.call(depth0, depth0.proyecto, {hash:{},inverse:self.noop,fn:self.program(1, program1, data),data:data});
  if(stack1 || stack1 === 0) { buffer += stack1; }
  buffer += "\n</div>";
  return buffer;
  } ); })();(function() { var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {};templates['iniciar-proyecto'] = template(function (Handlebars,depth0,helpers,partials,data) {
  this.compilerInfo = [4,'>= 1.0.0'];
helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
  


  return "<div class=\"row\">\n<form id=\"form1\" action=\"#\" class=\"contact_form\">\n<div id=\"frame1\">\n    <ul>  \n        <li>  \n            <h1>Iniciar Sesion</h1>\n            <br />Por favor, inicie sesion para continuar.  \n        </li> \n        <li>  \n            <label for=\"name\">Email:</label>  \n            <input type=\"email\" placeholder=\"Email\" required />\n        </li> \n        <li>  \n            <label for=\"name\">Contraseña:</label>  \n            <input type=\"password\" placeholder=\"Contraseña\" required />\n        </li> \n        <li>                     \n            <div><button class=\"submit\" type=\"submit\">Acceder</button></div>   \n        </li>  \n    </ul>       \n</div>\n<div id=\"frame2\">\n    <ul>  \n        <li>  \n            <h1>&iquest;Nuevo en KickStarter?</h1>  \n            <br />Debe tener una cuenta en KickStarter para continuar.                 \n        </li> \n        <li>  \n            <label for=\"name\">Nombres:</label>  \n            <input type=\"text\" placeholder=\"Nombres\" required />  \n        </li> \n        <li>  \n            <label for=\"name\">Email:</label>  \n            <input type=\"email\" placeholder=\"Email\" required />\n        </li> \n        <li>  \n            <label for=\"name\">Re-ingresar Email:</label>  \n            <input type=\"email\" placeholder=\"Re-ingresar Email\" required />\n        </li> \n        <li>  \n            <label for=\"name\">Contraseña:</label>  \n            <input type=\"password\" placeholder=\"Contraseña\" required />\n        </li> \n        <li>  \n            <label for=\"name\">Re-ingresar Contraseña:</label>  \n            <input type=\"password\" placeholder=\"Re-ingresar Contraseña\" required />\n        </li>\n        <li>  \n            <label for=\"name\">Celular:</label>  \n            <input type=\"text\" placeholder=\"Celular\" required />  \n        </li> \n        <li>  \n            <label for=\"name\">Numero de Tarjeta:</label>  \n            <input type=\"text\" placeholder=\"Numero de Tarjeta\" required />\n        </li>\n        <li>  \n            <label for=\"name\">Domicilio:</label>  \n            <textarea name=\"message\" cols=\"70\" rows=\"2\" required></textarea>\n        </li>       \n        <li>\n            <button class=\"submit\" type=\"submit\">Registrarme</button>   \n        </li>  \n    </ul>\n</div>\n</form>\n</div>";
  } ); })();(function() { var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {};templates['list'] = template(function (Handlebars,depth0,helpers,partials,data) {
  this.compilerInfo = [4,'>= 1.0.0'];
helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
  var buffer = "", stack1, functionType="function", escapeExpression=this.escapeExpression, self=this;

function program1(depth0,data) {
  
  var buffer = "", stack1;
  buffer += "\n        <div class=\"col-md-3\">\n            <div class=\"thumbnail item\">\n                <a href=\"\">\n                    <img alt=\"";
  if (stack1 = helpers.name) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
  else { stack1 = depth0.name; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
  buffer += escapeExpression(stack1)
    + "\" src=\"";
  if (stack1 = helpers.url) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
  else { stack1 = depth0.url; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
  buffer += escapeExpression(stack1)
    + "\">\n                </a>\n                <a href=\"#detalle/";
  if (stack1 = helpers.id) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
  else { stack1 = depth0.id; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
  buffer += escapeExpression(stack1)
    + "/";
  if (stack1 = helpers.idUsuario) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
  else { stack1 = depth0.idUsuario; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
  buffer += escapeExpression(stack1)
    + "\">";
  if (stack1 = helpers.name) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
  else { stack1 = depth0.name; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
  buffer += escapeExpression(stack1)
    + "</a>\n                <!--<a class=\"list_link\" data-id=\"";
  if (stack1 = helpers.id) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
  else { stack1 = depth0.id; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
  buffer += escapeExpression(stack1)
    + "\" data-idUsuario=\"";
  if (stack1 = helpers.idUsuario) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
  else { stack1 = depth0.idUsuario; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
  buffer += escapeExpression(stack1)
    + "\" href=\"#detalle/";
  if (stack1 = helpers.id) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
  else { stack1 = depth0.id; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
  buffer += escapeExpression(stack1)
    + "/";
  if (stack1 = helpers.idUsuario) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
  else { stack1 = depth0.idUsuario; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
  buffer += escapeExpression(stack1)
    + "\">";
  if (stack1 = helpers.name) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
  else { stack1 = depth0.name; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
  buffer += escapeExpression(stack1)
    + "</a>-->\n                <p>";
  if (stack1 = helpers.producer) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
  else { stack1 = depth0.producer; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
  buffer += escapeExpression(stack1)
    + "</p>\n                <div class=\"info-days\">\n                    <div class=\"left\">\n                        <font style=\"font-size: 9px;\">";
  if (stack1 = helpers.stars) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
  else { stack1 = depth0.stars; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
  buffer += escapeExpression(stack1)
    + " estrellas ";
  if (stack1 = helpers.funded) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
  else { stack1 = depth0.funded; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
  buffer += escapeExpression(stack1)
    + " financiado / ";
  if (stack1 = helpers.pledged) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
  else { stack1 = depth0.pledged; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
  buffer += escapeExpression(stack1)
    + " pledged</font>\n                    </div>                    \n                    <div class=\"clear\"></div>\n                </div>\n            </div>\n        </div>\n    ";
  return buffer;
  }

  buffer += "<div class=\"row\">\n    ";
  stack1 = helpers.each.call(depth0, depth0.list, {hash:{},inverse:self.noop,fn:self.program(1, program1, data),data:data});
  if(stack1 || stack1 === 0) { buffer += stack1; }
  buffer += "\n</div>";
  return buffer;
  } ); })();(function() { var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {};templates['listdestacado'] = template(function (Handlebars,depth0,helpers,partials,data) {
  this.compilerInfo = [4,'>= 1.0.0'];
helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
  var buffer = "", stack1, functionType="function", escapeExpression=this.escapeExpression, self=this;

function program1(depth0,data) {
  
  var buffer = "", stack1;
  buffer += "\n        <div class=\"col-md-3\">\n            <div class=\"thumbnail item\">\n                <a href=\"\">\n                    <img alt=\"";
  if (stack1 = helpers.name) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
  else { stack1 = depth0.name; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
  buffer += escapeExpression(stack1)
    + "\" src=\"";
  if (stack1 = helpers.url) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
  else { stack1 = depth0.url; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
  buffer += escapeExpression(stack1)
    + "\">\n                </a>\n                <h5><a href=\"\">";
  if (stack1 = helpers.name) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
  else { stack1 = depth0.name; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
  buffer += escapeExpression(stack1)
    + "</a></h5>\n                <p>";
  if (stack1 = helpers.producer) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
  else { stack1 = depth0.producer; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
  buffer += escapeExpression(stack1)
    + "</p>\n                 <div class=\"info-days\">\n                    <div class=\"left\">\n                        <font style=\"font-size: 9px;\">";
  if (stack1 = helpers.stars) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
  else { stack1 = depth0.stars; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
  buffer += escapeExpression(stack1)
    + " estrellas ";
  if (stack1 = helpers.funded) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
  else { stack1 = depth0.funded; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
  buffer += escapeExpression(stack1)
    + " financiado / ";
  if (stack1 = helpers.pledged) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
  else { stack1 = depth0.pledged; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
  buffer += escapeExpression(stack1)
    + " pledged</font>\n                    </div>                    \n                    <div class=\"clear\"></div>\n                </div>\n            </div>\n        </div>\n    ";
  return buffer;
  }

  buffer += "<div class=\"row\">\n    ";
  stack1 = helpers.each.call(depth0, depth0.list, {hash:{},inverse:self.noop,fn:self.program(1, program1, data),data:data});
  if(stack1 || stack1 === 0) { buffer += stack1; }
  buffer += "\n</div>";
  return buffer;
  } ); })();(function() { var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {};templates['listvisitado'] = template(function (Handlebars,depth0,helpers,partials,data) {
  this.compilerInfo = [4,'>= 1.0.0'];
helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
  var buffer = "", stack1, functionType="function", escapeExpression=this.escapeExpression, self=this;

function program1(depth0,data) {
  
  var buffer = "", stack1;
  buffer += "\n        <div class=\"col-md-3\">\n            <div class=\"thumbnail item\">\n                <a href=\"\">\n                    <img alt=\"";
  if (stack1 = helpers.name) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
  else { stack1 = depth0.name; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
  buffer += escapeExpression(stack1)
    + "\" src=\"";
  if (stack1 = helpers.url) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
  else { stack1 = depth0.url; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
  buffer += escapeExpression(stack1)
    + "\">\n                </a>\n                <h5><a href=\"\">";
  if (stack1 = helpers.name) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
  else { stack1 = depth0.name; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
  buffer += escapeExpression(stack1)
    + "</a></h5>\n                <p>";
  if (stack1 = helpers.producer) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
  else { stack1 = depth0.producer; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
  buffer += escapeExpression(stack1)
    + "</p>\n                 <div class=\"info-days\">\n                    <div class=\"left\">\n                        <font style=\"font-size: 9px;\">";
  if (stack1 = helpers.stars) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
  else { stack1 = depth0.stars; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
  buffer += escapeExpression(stack1)
    + " estrellas ";
  if (stack1 = helpers.funded) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
  else { stack1 = depth0.funded; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
  buffer += escapeExpression(stack1)
    + " financiado / ";
  if (stack1 = helpers.pledged) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
  else { stack1 = depth0.pledged; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
  buffer += escapeExpression(stack1)
    + " pledged</font>\n                    </div>                    \n                    <div class=\"clear\"></div>\n                </div>\n            </div>\n        </div>\n    ";
  return buffer;
  }

  buffer += "<div class=\"row\">\n    ";
  stack1 = helpers.each.call(depth0, depth0.list, {hash:{},inverse:self.noop,fn:self.program(1, program1, data),data:data});
  if(stack1 || stack1 === 0) { buffer += stack1; }
  buffer += "\n</div>";
  return buffer;
  } ); })();(function() { var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {};templates['popup-window'] = template(function (Handlebars,depth0,helpers,partials,data) {
  this.compilerInfo = [4,'>= 1.0.0'];
helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
  var buffer = "", stack1, functionType="function", escapeExpression=this.escapeExpression, self=this;

function program1(depth0,data) {
  
  var buffer = "", stack1;
  buffer += "\n                <a href=\"javascript:void(0);\" id=\"";
  if (stack1 = helpers.id) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
  else { stack1 = depth0.id; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
  buffer += escapeExpression(stack1)
    + "\" class=\"popup-window-footer-btn btn btn-small ";
  stack1 = helpers['if'].call(depth0, depth0.primary, {hash:{},inverse:self.noop,fn:self.program(2, program2, data),data:data});
  if(stack1 || stack1 === 0) { buffer += stack1; }
  buffer += " ";
  stack1 = helpers.unless.call(depth0, depth0.primary, {hash:{},inverse:self.noop,fn:self.program(4, program4, data),data:data});
  if(stack1 || stack1 === 0) { buffer += stack1; }
  buffer += " ";
  stack1 = helpers['if'].call(depth0, depth0.hidden, {hash:{},inverse:self.noop,fn:self.program(6, program6, data),data:data});
  if(stack1 || stack1 === 0) { buffer += stack1; }
  buffer += " \">";
  if (stack1 = helpers.name) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
  else { stack1 = depth0.name; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
  buffer += escapeExpression(stack1)
    + "</a>\n            ";
  return buffer;
  }
function program2(depth0,data) {
  
  
  return " btn-primary ";
  }

function program4(depth0,data) {
  
  
  return "btn-danger";
  }

function program6(depth0,data) {
  
  
  return "hidden-button";
  }

  buffer += "<div class=\"popup-window modal ";
  if (stack1 = helpers.ctClass) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
  else { stack1 = depth0.ctClass; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
  buffer += escapeExpression(stack1)
    + "\">\n  <div class=\"modal-dialog\">\n    <div class=\"modal-content\">\n        <div class=\"modal-header\">\n            <h4>";
  if (stack1 = helpers.title) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
  else { stack1 = depth0.title; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
  buffer += escapeExpression(stack1)
    + "</h4>\n        </div>\n        <div class=\"modal-body\">\n        </div>\n        <div class=\"popup-window-footer modal-footer\">\n            <div class=\"main-buttons\">\n            ";
  stack1 = helpers.each.call(depth0, depth0.buttons, {hash:{},inverse:self.noop,fn:self.program(1, program1, data),data:data});
  if(stack1 || stack1 === 0) { buffer += stack1; }
  buffer += "\n            </div>\n        </div>\n     </div>\n   </div>\n</div>";
  return buffer;
  } ); })();(function() { var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {};templates['registrarusuario'] = template(function (Handlebars,depth0,helpers,partials,data) {
  this.compilerInfo = [4,'>= 1.0.0'];
helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
  


  return "<div class=\"alert alert-danger errorMessage\" style=\"display:none\">Complete todos los campos para poder continuar</div>\n<div class=\"form-signin\" role=\"form\">\n<div id=\"frame1\">\n    <ul> \n        <li>  \n            <label for=\"name\">Nombres:</label>  \n            <input type=\"text\" class=\"form-control\" placeholder=\"Nombres\" required />  \n        </li> \n        <li>  \n            <label for=\"name\">Email:</label>  \n            <input type=\"email\" class=\"form-control\" placeholder=\"Email\" required />\n        </li> \n        <li>  \n            <label for=\"name\">Re-ingresar Email:</label>  \n            <input type=\"email\" class=\"form-control\" placeholder=\"Re-ingresar Email\" required />\n        </li> \n        <li>  \n            <label for=\"name\">Contraseña:</label>  \n            <input type=\"password\" class=\"form-control\" placeholder=\"Contraseña\" required />\n        </li> \n        <li>  \n            <label for=\"name\">Re-ingresar Contraseña:</label>  \n            <input type=\"password\" class=\"form-control\" placeholder=\"Re-ingresar Contraseña\" required />\n        </li>\n        <li>  \n            <label for=\"name\">Celular:</label>  \n            <input type=\"text\" class=\"form-control\" placeholder=\"Celular\" required />  \n        </li> \n        <li>  \n            <label for=\"name\">Numero de Tarjeta:</label>  \n            <input type=\"text\" class=\"form-control\" placeholder=\"Numero de Tarjeta\" required />\n        </li>\n        <li>  \n            <label for=\"name\">Domicilio:</label>  \n            <textarea name=\"message\" cols=\"70\" rows=\"2\" class=\"form-control\" required></textarea>\n        </li>\n    </ul>\n</div>\n</div>\n</div>";
  } ); })();(function() { var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {};templates['sidebar'] = template(function (Handlebars,depth0,helpers,partials,data) {
  this.compilerInfo = [4,'>= 1.0.0'];
helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
  var buffer = "", stack1, self=this, functionType="function", escapeExpression=this.escapeExpression;

function program1(depth0,data) {
  
  var buffer = "", stack1;
  buffer += "\n\n        <li ";
  stack1 = helpers['if'].call(depth0, depth0.active, {hash:{},inverse:self.noop,fn:self.program(2, program2, data),data:data});
  if(stack1 || stack1 === 0) { buffer += stack1; }
  buffer += " >\n            <a href=\"#\" class=\"category_link\" data-id=\"";
  if (stack1 = helpers.id) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
  else { stack1 = depth0.id; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
  buffer += escapeExpression(stack1)
    + "\">\n                <i class=\"icon-chevron-right\"></i> ";
  if (stack1 = helpers.name) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
  else { stack1 = depth0.name; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
  buffer += escapeExpression(stack1)
    + "\n            </a>\n        </li>\n\n    ";
  return buffer;
  }
function program2(depth0,data) {
  
  
  return " class=\"active\"  ";
  }

  buffer += "<ul class=\"nav nav-pills nav-stacked\">\n\n    ";
  stack1 = helpers.each.call(depth0, depth0.categories, {hash:{},inverse:self.noop,fn:self.program(1, program1, data),data:data});
  if(stack1 || stack1 === 0) { buffer += stack1; }
  buffer += "\n\n</ul>";
  return buffer;
  } ); })();(function() { var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {};templates['slider'] = template(function (Handlebars,depth0,helpers,partials,data) {
  this.compilerInfo = [4,'>= 1.0.0'];
helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
  


  return "<div id=\"slider\">\n    <img src=\"images/img/cz16.png\" alt=\"\" />\n    <img src=\"images/img/cz17.png\" alt=\"\" />\n    <img src=\"images/img/cz18.png\" alt=\"\" />\n    <img src=\"images/img/cz19.png\" alt=\"\" />\n    <img src=\"images/img/cz20.png\" alt=\"\" />\n</div>";
  } ); })();DEW.CategoriesCollection = Backbone.Collection.extend({
   url: 'https://dl.dropboxusercontent.com/s/ijog4h9rfpum7r7/categorias.json'
});
DEW.ListCollection = Backbone.Collection.extend({
   url: 'https://dl.dropboxusercontent.com/s/dt066f1e8gs51d7/proyecto.json',
   //url: 'https://dl.dropboxusercontent.com/u/1621947/listCollection.json',
   getByCategory: function(categoryId) {
       if (parseInt(categoryId) !== 0) {
           var filteredModels = this.where({
               category: parseInt(categoryId)
           });
           //Solo hago esto porque where devuelve un arreglo del modelo y se
           //necesita un array de objetos directos
           var result = [];
           for(var i=0;i < filteredModels.length; i++) {
               result.push(filteredModels[i].toJSON());
           }
           return result;
       } else {
           return this.toJSON();
       }
   },   
   getByStars: function(stars) {
       if (parseInt(stars) !== 0) {
           var filteredModels = this.where({
               stars: parseInt(stars)
           });
           //Solo hago esto porque where devuelve un arreglo del modelo y se
           //necesita un array de objetos directos
           var result = [];
           for(var i=0;i < filteredModels.length; i++) {
               result.push(filteredModels[i].toJSON());
           }
           return result;
       } else {
           return this.toJSON();
       }
   },
    getByVisited: function(visited) {
       if (parseInt(visited) !== 0) {
           var filteredModels = this.where({
               visited: parseInt(visited)
           });
           //Solo hago esto porque where devuelve un arreglo del modelo y se
           //necesita un array de objetos directos
           var result = [];
           for(var i=0;i < filteredModels.length; i++) {
               result.push(filteredModels[i].toJSON());
           }
           return result;
       } else {
           return this.toJSON();
       }
   },
   getByIdProyecto: function(idproyecto) {
       if (parseInt(idproyecto) !== 0) {
           var filteredModels = this.where({
               id: parseInt(idproyecto)
           });
           //Solo hago esto porque where devuelve un arreglo del modelo y se
           //necesita un array de objetos directos
           var result = [];
           for(var i=0;i < filteredModels.length; i++) {
               result.push(filteredModels[i].toJSON());
           }
           return result;
       } else {
           return this.toJSON();
       }
   }
});DEW.LoginModel = Backbone.Model.extend({
    authenticate: function(email,password) {
        //Por ahora no vamos a llamar al servidor por lo tanto siempre retornamos true
        return true;
    }

});DEW.PremioCollection = Backbone.Collection.extend({
    url:'https://dl.dropboxusercontent.com/s/dgorgqmnr1yhyfr/premio.json',
   //url: 'https://dl.dropboxusercontent.com/s/ijog4h9rfpum7r7/categorias.json'
    getByPremioId: function(proyectoId) {
       if (parseInt(proyectoId) !== 0) {
           var filteredModels = this.where({
               idProyecto:parseInt(proyectoId)
           });
           //Solo hago esto porque where devuelve un arreglo del modelo y se
           //necesita un array de objetos directos
           var result = [];
           for(var i=0;i < filteredModels.length; i++) {
               result.push(filteredModels[i].toJSON());
           }
           return result;
       } else {
           return this.toJSON();
       }
   }
});
DEW.UsuarioCollection = Backbone.Collection.extend({
    url:'https://dl.dropboxusercontent.com/s/hfgdx4hmtje2f5z/usuario.json',
   //url: 'https://dl.dropboxusercontent.com/s/ijog4h9rfpum7r7/categorias.json'
    getByUsuarioId: function(usuarioId) {
       if (parseInt(usuarioId) !== 0) {
           var filteredModels = this.where({
               id: parseInt(usuarioId)
           });
           //Solo hago esto porque where devuelve un arreglo del modelo y se
           //necesita un array de objetos directos
           var result = [];
           for(var i=0;i < filteredModels.length; i++) {
               result.push(filteredModels[i].toJSON());
           }
           return result;
       } else {
           return this.toJSON();
       }
   }
});
DEW.UsuarioModel = Backbone.Model.extend({

    authenticate: function(email,password) {
        //Por ahora no vamos a llamar al servidor por lo tanto siempre retornamos true
        return true;
    }
});

DEW.StoreManagerClass = function(){};
$.extend(DEW.StoreManagerClass.prototype, {

    items:{},

    get: function(key){
        return this.items[key] || null;
    },

    put: function(key, value){
        this.items[key] = value;
    },

    removeAll: function() {
        this.items = {};
    },

    remove: function(key) {
        try {
            delete this.items[key];
        } catch(e) {};
    }
});
DEW.StoreManager = new DEW.StoreManagerClass();DEW.ViewManager = (function(){
    this.items = [];

    this.addView = function(view){
        return this.items.push(view);
    };

    this.removeAll = function(){
        if(this.items && this.items.length > 0){
            $.each(this.items, function(idx, view){
                if(view && typeof view.close === 'function'){
                    view.close();
                }
            });
        }
    };

    this.remove = function(item){
        var index = $.inArray(item, this.items);
        this.items.splice(index,1);
    };

    return this;
})();Backbone.View.prototype.close = function() {
  this.stopListening();
  this.remove();
  this.trigger("close");
};DEW.BaseDetails = Backbone.View.extend({

    template : Handlebars.templates['base-details'],

    render: function(){
        this.$el.html(this.template({}));
    }
});

DEW.BaseLayout = Backbone.View.extend({

    template : Handlebars.templates['base-layout'],

    render: function(){
        this.$el.html(this.template({}));
        $("#content").empty().append(this.$el);
        return this;
    }
});DEW.CrearPremioView = Backbone.View.extend({
    template: Handlebars.templates['crear-premio'],
    initialize: function() {
        this.render();
    },
    render: function() {
        this.$el.html(this.template({}));
        this.trigger("ready");
    }
});

DEW.CrearProyectoView = Backbone.View.extend({
    template: Handlebars.templates['crear-proyecto'],
    initialize: function() {
        this.render();
    },
    render: function() {
        this.$el.html(this.template({}));
        this.trigger("ready");
    }
});

DEW.DetalleView = Backbone.View.extend({
    template: Handlebars.templates['detalle-proyecto'],
    initialize: function() {
        this.render();
    },
    render: function() {
        this.$el.html(this.template({}));
        this.trigger("ready");
    }
});

DEW.DetalleProyecto = Backbone.View.extend({

    template: Handlebars.templates['detalle-proyecto'],        
    
    render: function() {
        this.$el.html(this.template({
        }));
    } 
});DEW.FinanciarProyectoView = Backbone.View.extend({
    template: Handlebars.templates['financiar-proyecto'],
    initialize: function() {
        this.render();
    },
    render: function() {
        this.$el.html(this.template({}));
        this.trigger("ready");
    }
});




DEW.Footer = Backbone.View.extend({

    template: Handlebars.templates['footer'],

    initialize: function() {
        //Aqui se puede poner configuracion inicial
    },

    render: function() {
        this.$el.html(this.template({
            //Algun parametro que le querramos configurar
        }));
    }
});DEW.Header = Backbone.View.extend({

    template: Handlebars.templates['header'],

    events: {
        "click .link" : "openLink",
        "click .logout" : "logoutLink",        
        "click #link_acceder" : "accederLink",
        "click #link_proyectos" : "proyectosLink"
    },

    initialize: function() {
        //Aqui se puede poner configuracion inicial
    },

    render: function() {
        this.$el.html(this.template({
            //Algun parametro que le querramos configurar
            logo: this.options.logo,            
            enlaces: this.options.enlaces
        }));
    },
    //Otra forma de llamar codigo es mediante handlers que se pueden pasar como parametro
    openLink: function(e) {
        e.preventDefault();
        //Obtengo cual es indice del elemento al que le hice click
        var idx = $(e.target).attr("data-id");
        //LLamo a handler que le pase como parametro
        this.options.enlaces[idx].handler();
    },

    login: function(email) {
        this.options.enlaces[0].show = false;
        this.options.enlaces[1].show = true;
        this.options.enlaces[1].text = email;
        this.options.enlaces[2].show = true;
        this.render();
    },

    logout: function() {
        this.options.enlaces[0].show = true;
        this.options.enlaces[1].show = false;
        this.options.enlaces[2].show = false;
        this.render();
    },
    
    accederLink: function() {
        
    }, 
    
    proyectosLink: function() {
        //alert("Formulario Proyectos");
    }        
});DEW.InfoCreador = Backbone.View.extend({

    template: Handlebars.templates['info-creador'],
    usuarioId:0,
    
    initialize: function() {
        this.listenTo(this.model, 'reset',  this.render);
    },

    render: function() {
        this.$el.html(this.template({
            usuario: this.model.getByUsuarioId(this.usuarioId)
        }));         
    }
});

DEW.InfoPremio = Backbone.View.extend({
    template: Handlebars.templates['info-premio'],
    proyectoId: 0,
    initialize: function() {
        this.listenTo(this.model, 'reset', this.render);
    },
    render: function() {
        this.$el.html(this.template({
            premio: this.model.getByPremioId(this.proyectoId)
        }));
    }
});

DEW.InfoProyecto = Backbone.View.extend({
    template: Handlebars.templates['info-proyecto'],
    idProyecto: 0,
    events: {
        "click .list_premio": "changeList"
    },
    initialize: function() {
        this.listenTo(this.model, 'reset', this.render);
    },
    render: function() {
        this.$el.html(this.template({
            proyecto: this.model.getByIdProyecto(this.idProyecto)

        }));
    },
    changeList: function(e) {
        e.preventDefault();
        this.currentListId = parseInt($(e.target).attr("data-id"));
        this.trigger("changeList", this.currentListId);
    }
});DEW.IniciarProyectoView = Backbone.View.extend({
    template: Handlebars.templates['iniciar-proyecto'],
    initialize: function() {
        this.render();
    },
    render: function() {
        this.$el.html(this.template({}));
        this.trigger("ready");
    }
});

DEW.List = Backbone.View.extend({
    template: Handlebars.templates['list'],
    categoryId: 0,
    currentListId: 0,
    currentUsuarioId: 0,
    /*events: {
        "click .list_link" : "changeList"
    },*/
    initialize: function() {
        this.listenTo(this.model, 'reset', this.render);
    },
    render: function() {
        this.$el.html(this.template({
            list: this.model.getByCategory(this.categoryId)
        }));
    }/*,
     changeList: function(e) {
        e.preventDefault();
        this.currentListId = parseInt($(e.target).attr("data-id"));
        this.currentUsuarioId = parseInt($(e.target).attr("data-idUsuario"));
        this.trigger("changeList", this.currentListId, this.currentUsuarioId);
    }*/
});DEW.listDestacadoView= Backbone.View.extend({

    template: Handlebars.templates['listdestacado'],

    categoryId: 0,
    stars:4,
    initialize: function() {
        this.listenTo(this.model, 'reset',  this.render);
    },

    render: function() {
        this.$el.html(this.template({
            list: this.model.getByStars(this.stars)
        }));
    }
});DEW.listVisitadoView = Backbone.View.extend({

    template: Handlebars.templates['listvisitado'],

    categoryId: 0,
    visited:1000,
    initialize: function() {
        this.listenTo(this.model, 'reset',  this.render);
    },

    render: function() {
        this.$el.html(this.template({
            list: this.model.getByVisited(this.visited)
        }));
    }
});DEW.PopupWindow = Backbone.View.extend({
    template : Handlebars.templates['popup-window'],

    buttons: [],

    events: {
        "click .popup-window-footer .popup-window-footer-btn" : "mapFooterButtonHandler",
        "click .modal-header .close-icon" : "close"
    },

    initialize: function(){
        var me = this;

        me.ctClass = me.options.ctClass;
        me.title = me.options.title;
        me.panel = me.options.panel;
        me.buttons = me.options.buttons || [];
        me.buttons.push({
            id: 'cancel-btn',
            name : 'Cancelar',
            hidden: false,
            primary: false,
            handler: function() {
                this.close();
            }
        });
        me.needValidation = me.options.needValidation || false;

        me.listenTo(this.panel, 'ready', function() {
            this.$(".modal-body").append(me.panel.el);
        });
    },

    mapFooterButtonHandler: function(eventObject){
        var buttons = this.$('.popup-window-footer .popup-window-footer-btn'),
            button = eventObject.target,
            idx =  buttons.index(button),
            buttonCfg = this.buttons[idx];

        if(buttonCfg) {
            if (this.needValidation && buttonCfg.id !== "cancel-btn") {
                if (this.panel.validate()) {
                    buttonCfg.handler.call(this, button, buttons);
                }
            } else {
                buttonCfg.handler.call(this, button, buttons);
            }
        }

    },

    render:function(){
        var me = this;

        this.$el.html(this.template({
            ctClass : me.ctClass,
            title : this.title,
            buttons : this.buttons
        }));

        me.panel.render();

        this.$('.modal').modal({
            show: true,
            backdrop: 'static',
            keyboard: false
        });
    },

    close:function(){
        this.$('.modal').modal('hide');
        this.remove();
    }
});

DEW.RegistrarUsuario = Backbone.View.extend({

    template: Handlebars.templates['registrarusuario'],

    initialize: function() {
        this.render();
    },

    render: function() {
        this.$el.html(this.template({}));
        this.trigger("ready");
    },
    
    authenticate: function(options) {
        var email = this.$el.find("#email").val();
        var password = this.$el.find("#password").val();

        if (email !== "" && password !== "") {
            if (this.model.authenticate(email,password)) {
                options.success(email);
            } else {
                this.$el.find(".errorMessage").show();
            }
        } else {
            this.$el.find(".errorMessage").show();
        }
    },

    hideLoginError: function() {
        this.$el.find(".errorMessage").hide();
    }
});DEW.Sidebar = Backbone.View.extend({

    template: Handlebars.templates['sidebar'],

    currentCategoryId: 0,

    events: {
        "click .category_link" : "changeCategory"
    },

    initialize: function() {
        this.listenTo(this.model, 'reset',  this.render);
        //this.listenTo(this.options.listaCreadores,'reset',this.render);
    },

    render: function() {
        var me = this;
        
        var categories = _.map(this.model.toJSON(),function(model) {
            model.active = me.currentCategoryId === model.id;
            return model;
        });
        
        this.$el.html(this.template({
            categories: categories
        }));
    },

    changeCategory: function(e) {
        e.preventDefault();
        this.currentCategoryId = parseInt($(e.target).attr("data-id"));
        this.render();
        this.trigger("changeCategory",this.currentCategoryId);
    }
});DEW.Slider = Backbone.View.extend({

    template: Handlebars.templates['slider'],

//    currentCategoryId: 0,

//    events: {
//        "click .category_link" : "changeCategory"
//    },

    initialize: function() {
//        this.listenTo(this.model, 'reset',  this.render);
    },

    render: function() {
//        var me = this;
//        var categories = _.map(this.model.toJSON(),function(model) {
//            model.active = me.currentCategoryId === model.id;
//            return model;
//        });
        this.$el.html(this.template({
//            categories: categories
        }));
        
        var flux = new window.flux.slider(this.$el.find("#slider"),{
            pagination: true
        });
    }

//    changeCategory: function(e) {
//        e.preventDefault();
//        this.currentCategoryId = parseInt($(e.target).attr("data-id"));
//        this.render();
//        this.trigger("changeCategory",this.currentCategoryId);
//    }
});


DEW.CrearPremioController = function() {
};

$.extend(DEW.CrearPremioController.prototype, {
    render: function() {
        DEW.ViewManager.removeAll();
        this.displayLayout();
        this.displayHeader();
        this.displayBody();
        this.displayFooter();
    },
    displayLayout: function() {
        var baseDetails = new DEW.BaseDetails();
        baseDetails.render();
        $(baseDetails.el).appendTo("#content");
        DEW.ViewManager.addView(baseDetails);
    },
    displayHeader: function() {
        var header = new DEW.Header({
            logo: {
                src: 'images/logo.jpg',
                alt: 'Logo'
            }
        });
        header.render();
        $(header.el).appendTo("#header");
        DEW.ViewManager.addView(header);
    },
    displayBody: function() {
        
        var slider = new DEW.Slider();
        slider.render();
        $(slider.el).prependTo(".marco");
        DEW.ViewManager.addView(slider);

        //informacion para crear premio      
        var crearPremioView = new DEW.CrearPremioView({});
        $(crearPremioView.el).appendTo(".detalle");
        DEW.ViewManager.addView(crearPremioView);        
    },
    displayFooter: function() {
        var footer = new DEW.Footer();
        footer.render();
        $(footer.el).appendTo("#footer");
        DEW.ViewManager.addView(footer);
    }
});DEW.CrearProyectoController = function() {
};

$.extend(DEW.CrearProyectoController.prototype, {
    render: function() {
        DEW.ViewManager.removeAll();
        this.displayLayout();
        this.displayHeader();
        this.displayBody();
        this.displayFooter();
    },
    displayLayout: function() {
        var baseDetails = new DEW.BaseDetails();
        baseDetails.render();
        $(baseDetails.el).appendTo("#content");
        DEW.ViewManager.addView(baseDetails);
    },
    displayHeader: function() {
        var header = new DEW.Header({
            logo: {
                src: 'images/logo.jpg',
                alt: 'Logo'
            }
        });
        header.render();
        $(header.el).appendTo("#header");
        DEW.ViewManager.addView(header);
    },
    displayBody: function() {
        
        var slider = new DEW.Slider();
        slider.render();
        $(slider.el).prependTo(".marco");
        DEW.ViewManager.addView(slider);

        //informacion para crear proyecto      
        var crearProyectoView = new DEW.CrearProyectoView({});
        $(crearProyectoView.el).appendTo(".detalle");
        DEW.ViewManager.addView(crearProyectoView);        
    },
    displayFooter: function() {
        var footer = new DEW.Footer();
        footer.render();
        $(footer.el).appendTo("#footer");
        DEW.ViewManager.addView(footer);
    }
});DEW.DetalleController = function(options) {
    this.options = options;
};

$.extend(DEW.DetalleController.prototype, {
    render: function() {
        DEW.ViewManager.removeAll();
        this.displayLayout();
        this.displayHeader();
        this.displayBody();
        this.displayFooter();
    },
    displayLayout: function() {
        var baseDetails = new DEW.BaseDetails();
        baseDetails.render();
        $(baseDetails.el).appendTo("#content");
        DEW.ViewManager.addView(baseDetails);
    },
    displayHeader: function() {
        var header = new DEW.Header({
            logo: {
                src: 'images/logo.jpg',
                alt: 'Logo'
            }
        });
        header.render();
        $(header.el).appendTo("#header");
        DEW.ViewManager.addView(header);
    },
    displayBody: function() {

        var slider = new DEW.Slider();
        slider.render();
        $(slider.el).prependTo(".marco");
        DEW.ViewManager.addView(slider);

        var detalleView = new DEW.DetalleView({});
        $(detalleView.el).appendTo(".detalle");
        DEW.ViewManager.addView(detalleView);

        //Informacion para detalle del proyecto
        var itemProyecto = new DEW.ListCollection();
        itemProyecto.fetch({reset: true});

        var infoProyectoView = new DEW.InfoProyecto({
            model: itemProyecto
        });
        infoProyectoView.idProyecto = this.options.idProyecto;
        infoProyectoView.render();
        $(infoProyectoView.el).appendTo(".infoproyecto");
        DEW.ViewManager.addView(infoProyectoView);

        //Informacion del creador
        var itemUsuario = new DEW.UsuarioCollection();
        itemUsuario.fetch({reset: true});

        var infoCreadorView = new DEW.InfoCreador({
            model: itemUsuario
        });
        infoCreadorView.usuarioId = this.options.idUsuario;
        infoCreadorView.render();
        $(infoCreadorView.el).appendTo(".infocreador");
        DEW.ViewManager.addView(infoCreadorView);

        //Informacion de los premios            
        var itemsPremios = new DEW.PremioCollection();
        itemsPremios.fetch({reset: true});
        var infoPremioView = new DEW.InfoPremio({
            model: itemsPremios
        });
        infoPremioView.proyectoId = this.options.idProyecto;
        infoPremioView.render();
        $(infoPremioView.el).appendTo(".infopremio");
        DEW.ViewManager.addView(infoPremioView);
        
    },
    displayFooter: function() {
        var footer = new DEW.Footer();
        footer.render();
        $(footer.el).appendTo("#footer");
        DEW.ViewManager.addView(footer);
    }
});DEW.FinanciarProyectoController = function() {
};

$.extend(DEW.FinanciarProyectoController.prototype, {
    render: function() {
        DEW.ViewManager.removeAll();
        this.displayLayout();
        this.displayHeader();
        this.displayBody();
        this.displayFooter();
    },
    displayLayout: function() {
        var baseDetails = new DEW.BaseDetails();
        baseDetails.render();
        $(baseDetails.el).appendTo("#content");
        DEW.ViewManager.addView(baseDetails);
    },
    displayHeader: function() {
        var header = new DEW.Header({
            logo: {
                src: 'images/logo.jpg',
                alt: 'Logo'
            }
        });
        header.render();
        $(header.el).appendTo("#header");
        DEW.ViewManager.addView(header);
    },
    displayBody: function() {
        
        var slider = new DEW.Slider();
        slider.render();
        $(slider.el).prependTo(".marco");
        DEW.ViewManager.addView(slider);

        //informacion para iniciar proyecto      
        var financiarProyectoView = new DEW.FinanciarProyectoView({});
        $(financiarProyectoView.el).appendTo(".detalle");
        DEW.ViewManager.addView(financiarProyectoView);        
    },
    displayFooter: function() {
        var footer = new DEW.Footer();
        footer.render();
        $(footer.el).appendTo("#footer");
        DEW.ViewManager.addView(footer);
    }
});

DEW.HomeController = function() {
};

$.extend(DEW.HomeController.prototype, {
    render: function() {
        DEW.ViewManager.removeAll();
        this.displayLayout();
        this.displayHeader();
        this.displayBody();
        this.displayFooter();
    },
    displayLayout: function() {
        var baseLayout = new DEW.BaseLayout();
        baseLayout.render();
        $(baseLayout.el).appendTo("#content");
        DEW.ViewManager.addView(baseLayout);
    },
    displayHeader: function() {
        var header = new DEW.Header({
            logo: {
                src: 'images/logo.jpg',
                alt: 'Logo'
            }
        });
        header.render();
        $(header.el).appendTo("#header");
        DEW.ViewManager.addView(header);
    },
    displayBody: function() {

        var categoriesCollection = new DEW.CategoriesCollection();
        categoriesCollection.fetch({reset: true});

        var sidebar = new DEW.Sidebar({
            model: categoriesCollection
          //listaCreadores: creadoresCollection
        });
        $(sidebar.el).appendTo("#sidebar");
        DEW.ViewManager.addView(sidebar);

        var slider = new DEW.Slider();
        slider.render();
        $(slider.el).prependTo(".marco");
        DEW.ViewManager.addView(slider);

        sidebar.on("changeCategory", function(categoryId) {
            listView.categoryId = categoryId;
            listView.render();
        });

        //Cargando lista de datos
        var listCollection = new DEW.ListCollection();
        listCollection.fetch({reset: true});

        var listView = new DEW.List({
            model: listCollection
        });
        $(listView.el).appendTo(".columna_central");
        DEW.ViewManager.addView(listView);

        //Creando la vista y asociandole el modelo        
       /*listView.on("changeList", function(proyectoId, usuarioId) {
            
            listView.remove();
            sidebar.remove();
            listDestacaView.remove();
            listVisitadoView.remove();

            //Base de detalle del proyecto
            var detalleProyectoView = new DEW.DetalleProyecto({
            });
            detalleProyectoView.render();
            $(detalleProyectoView.el).appendTo(".cuerpo");
            DEW.ViewManager.addView(detalleProyectoView);

            //Informacion del proyecto
            var itemProyecto = new DEW.ListCollection();
            itemProyecto.fetch({reset: true});

            var infoProyectoView = new DEW.InfoProyecto({
                model: itemProyecto
            });
            infoProyectoView.idProyecto = proyectoId;
            infoProyectoView.render();
            $(infoProyectoView.el).appendTo(".infoproyecto");
            DEW.ViewManager.addView(infoProyectoView);

            //Informacion del creador
            var itemUsuario = new DEW.UsuarioCollection();
            itemUsuario.fetch({reset: true});

            var infoCreadorView = new DEW.InfoCreador({
                model: itemUsuario
            });
            infoCreadorView.usuarioId = usuarioId;
            infoCreadorView.render();
            $(infoCreadorView.el).appendTo(".infocreador");
            DEW.ViewManager.addView(infoCreadorView);

            //Informacion de los premios            
            var itemsPremios = new DEW.PremioCollection();
            itemsPremios.fetch({reset: true});
            var infoPremioView = new DEW.InfoPremio({
                model: itemsPremios
            });
            infoPremioView.proyectoId = proyectoId;
            infoPremioView.render();
            $(infoPremioView.el).appendTo(".infopremio");
            DEW.ViewManager.addView(infoPremioView);

        });*/

        //Destacados Cargando lista de datos
        var listCollectionDestacado = new DEW.ListCollection();
        listCollectionDestacado.fetch({reset: true});

        var listDestacaView = new DEW.listDestacadoView({
            model: listCollection
        });

        listDestacaView.stars = parseInt(4);
        listDestacaView.render();
        $(listDestacaView.el).appendTo(".columna_central_a");
        DEW.ViewManager.addView(listDestacaView);

        //Visitados Cargando lista de datos
        var listCollectionVisitado = new DEW.ListCollection();
        listCollectionVisitado.fetch({reset: true});

        var listVisitadoView = new DEW.listVisitadoView({
            model: listCollectionVisitado
        });
        listVisitadoView.visited = parseInt(1000);
        listVisitadoView.render();
        $(listVisitadoView.el).appendTo(".columna_central_b");
        DEW.ViewManager.addView(listVisitadoView);
    },
    displayFooter: function() {
        var footer = new DEW.Footer();
        footer.render();
        $(footer.el).appendTo("#footer");
        DEW.ViewManager.addView(footer);
    }
});DEW.IniciarProyectoController = function() {
};

$.extend(DEW.IniciarProyectoController.prototype, {
    render: function() {
        DEW.ViewManager.removeAll();
        this.displayLayout();
        this.displayHeader();
        this.displayBody();
        this.displayFooter();
    },
    displayLayout: function() {
        var baseDetails = new DEW.BaseDetails();
        baseDetails.render();
        $(baseDetails.el).appendTo("#content");
        DEW.ViewManager.addView(baseDetails);
    },
    displayHeader: function() {
        var header = new DEW.Header({
            logo: {
                src: 'images/logo.jpg',
                alt: 'Logo'
            }
        });
        header.render();
        $(header.el).appendTo("#header");
        DEW.ViewManager.addView(header);
    },
    displayBody: function() {
        
        var slider = new DEW.Slider();
        slider.render();
        $(slider.el).prependTo(".marco");
        DEW.ViewManager.addView(slider);

        //informacion para iniciar proyecto      
        var iniciarProyectoView = new DEW.IniciarProyectoView({});
        $(iniciarProyectoView.el).appendTo(".detalle");
        DEW.ViewManager.addView(iniciarProyectoView);        
    },
    displayFooter: function() {
        var footer = new DEW.Footer();
        footer.render();
        $(footer.el).appendTo("#footer");
        DEW.ViewManager.addView(footer);
    }
});DEW.RegistrarUsuarioController = function() {
};

$.extend(DEW.RegistrarUsuarioController.prototype, {
    render: function() {
        this.displayPopup();
    },
    displayPopup: function() {        
        var loginPopup = new DEW.PopupWindow({
                        ctClass: 'loginPopup',
                        title: 'Registrar Usuario',
                        needValidation: false,
                        panel: new DEW.RegistrarUsuario({
                            model: new DEW.UsuarioModel()
                        }),
                        buttons: [{
                            id: 'create-btn',
                            name : 'Crear',
                            hidden: false,
                            primary: true,
                            handler: function() {
                                loginPopup.panel.authenticate({
                                    success: function(email) {
                                        loginPopup.panel.hideLoginError();
                                        header.login(email);
                                        loginPopup.close();
                                    }
                                });
                            }
                        }]
                    });
                    loginPopup.render();
                    $("body").append(loginPopup.el);
      }    
});

DEW.appRouter = Backbone.Router.extend({
    routes: {
        "home": "displayHome",
        "iniciarproyecto": "displayIniciarProyecto",
        "crearproyecto": "displayCrearProyecto",
        "crearpremio": "displayCrearPremio",
        "financiarproyecto": "displayFinanciarProyecto",
        "registrarusuario": "displayRegistrarUsuario",
        "detalle/:idProyecto/:idUsuario" : "displayDetalle",
        "*actions": "defaultRoute"
    },
    initialize: function()
    {

    },
            
    displayDetalle: function(idProyecto,idUsuario) {
        var detalleController = new DEW.DetalleController({
            idProyecto: idProyecto,
            idUsuario: idUsuario
        });
        detalleController.render();
    },        
    displayHome: function() {
        var homeController = new DEW.HomeController();
        homeController.render();
    },
    displayIniciarProyecto: function() {
        var iniciarProyectoController = new DEW.IniciarProyectoController();
        iniciarProyectoController.render();
    },
    displayCrearProyecto: function() {
        var crearProyectoController = new DEW.CrearProyectoController();
        crearProyectoController.render();
    },
    displayCrearPremio: function() {
        var crearPremioController = new DEW.CrearPremioController();
        crearPremioController.render();
    },
    displayFinanciarProyecto: function() {
        var financiarProyectoController = new DEW.FinanciarProyectoController();
        financiarProyectoController.render();
    },
    displayRegistrarUsuario: function() {
        var registrarUsuarioController = new DEW.RegistrarUsuarioController();
        registrarUsuarioController.render();
    },
    defaultRoute: function() {
        this.displayHome();
    }
    
});